cmake_minimum_required(VERSION 3.17)
project(RapidSVN_cmake)

set(CMAKE_CXX_STANDARD 14)
#cmake_minimum_required(VERSION 3.17)
#project(librapidsvn)
#add_executable(RapidSVN_cmake main.cpp)
#build the library
#set(CMAKE_MODULE_PATH ${KIUI_SOURCE_DIR}/cmake/modules ${KIUI_SOURCE_DIR}/cmake/packages ${CMAKE_MODULE_PATH})

#macro for include
set( WX_INCLUDE "/usr/include/wx-3.0/"
        "/usr/lib/x86_64-linux-gnu/wx/include/gtk3-unicode-3.0/")

#macro One for link
#file:///usr/lib/x86_64-linux-gnu/libwx_baseu_xml-3.0.so
set( WX_LIBS "wx_baseu_xml-3.0"
        "wx_gtk3u_core-3.0"
        "wx_baseu_net-3.0" "wx_baseu-3.0" )

#全局引用
INCLUDE_DIRECTORIES( ${WX_INCLUDE} )
#/usr/lib/x86_64-linux-gnu/
#file:///usr/lib/x86_64-linux-gnu/libwx_baseu_xml-3.0.so
#default
#LINK_DIRECTORIES( ${WX_LIBS} )
LINK_LIBRARIES( ${WX_LIBS} )

#for install
set( MY_SYSTEM "~/MySystem/usr/lib" )

message( "WX_LIBS: ${WX_LIBS}" )

#
add_definitions("-D WXUSINGDLL")
add_definitions("-D __WXGTK__")
add_definitions("-D _DEBUG_" )

add_subdirectory( basic )

add_subdirectory( lib_preference )

add_subdirectory(libsvncpp)

add_subdirectory(librapidsvn)

add_subdirectory(libpreference)

add_subdirectory(rapidsvn)

add_subdirectory(MainApp)

add_subdirectory(postFile)

add_subdirectory(confApp)

add_subdirectory(customControl)

add_subdirectory(wifiMonitor)

add_subdirectory(printer)

add_subdirectory(console)